package com.fadadianqi.logistics.admin.ticket.model;

import com.fadadianqi.commons.BaseObject;

/**
 * 抽奖礼品
 *
 * @author aroot
 */
public class Prize extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = -3116922314448252961L;

    /*
     * 只要抽奖就有机会随机出现
     */
    public static final int TYPE_RANDOM = 0x0000001;

    /*
     * 每次随机抽奖不中必须出现的纪念奖
     */
    public static final int TYPE_MUST = 0x0000002;

    /*
     * 每次随机抽奖必须不出现
     */
    public static final int TYPE_NOT_MUST = 0x0000003;

    /*
     *  只有奖品成本小于<最高奖品总额>的时候才随机出现
     *  订单生成后已经计算出此订单所能抽得的<最高奖品总额>
     *  <最高奖品总额>订单利润的百分比计算获得
     */
    public static final int TYPE_PROFIX_PERCENT = 0x0000004;

    private String name; // 奖品名称
    private Double value; // 奖品价值
    private Double cost; // 奖品成本
    private int type; // 获奖方式
    private int count; // 奖品数量

    private Boolean withdraw = Boolean.FALSE; // 是否下架


    public Boolean getWithdraw() {
        return withdraw;
    }

    public void setWithdraw(Boolean withdraw) {
        this.withdraw = withdraw;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
